home *** CD-ROM | disk | FTP | other *** search
-
- /*
- *
- * MOS109 : マウスカ-ソルの垂直移動範囲指定
- *
- */
-
- #include <stdio.h>
- #include <dos.h>
-
- unsigned int MOS_vertical(signed int y1,signed int y2) {
- union REGS inregs, outregs;
- struct SREGS segregs;
-
- segread(&segregs);
- inregs.x.ax=0x0800;
- inregs.x.dx=y1;
- inregs.x.bx=y2;
- int86x(0x99,&inregs,&outregs,&segregs);
- return (unsigned int)outregs.h.ah;
- }